x=[0:0.01:10]
y=sin(x)
g=cos(x)
plot(x,y,x,g,'.-'),legend('sin(x)','cos(x)')